package model.entities;

import java.io.Serializable;
import java.util.Date;


public class JustificativaId implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 776848003302980086L;
	private String matricula;
	private Date dhJustificadaEntrada;
	public JustificativaId(){
		
	}
	public boolean equals(Object other) {
	         if ( (this == other ) ) return true;
			 if ( (other == null ) ) return false;
			 if ( !(other instanceof JustificativaId) ) return false;
			 JustificativaId castOther = ( JustificativaId ) other; 
	         
			 return ( (this.getMatricula()==castOther.getMatricula()) || ( this.getMatricula()!=null && castOther.getMatricula()!=null && this.getMatricula().equals(castOther.getMatricula()) ))
	 && ( (this.getDhJustificadaEntrada()==castOther.getDhJustificadaEntrada()) || ( this.getDhJustificadaEntrada()!=null && castOther.getDhJustificadaEntrada()!=null && this.getDhJustificadaEntrada().equals(castOther.getDhJustificadaEntrada()) ) );
	}
	   public int hashCode() {
	         int result = 17;
	         
	         result = 37 * result + ( getMatricula() == null ? 0 : this.getMatricula().hashCode() );
	         result = 37 * result + ( getDhJustificadaEntrada() == null ? 0 : this.getDhJustificadaEntrada().hashCode() );
	         return result;
	   }   

	public Date getDhJustificadaEntrada() {
		return dhJustificadaEntrada;
	}
	public void setDhJustificadaEntrada(Date dhJustificadaEntrada) {
		this.dhJustificadaEntrada = dhJustificadaEntrada;
	}
	public String getMatricula() {
		return matricula;
	}
	public void setMatricula(String matricula) {
		this.matricula = matricula;
	}
	
}
